package dao;

import java.util.List;

public interface Dao<T> {
	public void begin();
	public void commit();
	public void persist(T obj);
	public void merge(T obj);
	public void remove(T obj);
	public T find(Object key);
	public List<T> findAll(String by, String order);
	public List<T> findAll(String by, String order, String where);

}
